home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 398 / 398.xpi / chrome / forecastfox.jar / content / options / labels.xul < prev    next >
Extensible Markup Language  |  2010-02-04  |  4KB  |  91 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!--****************************************************************************
  4.   Copyright (c) 2008 Ensolis, LLC. All Rights Reserved.
  5.   ***************************************************************************-->
  6. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
  7. <?xml-stylesheet href="chrome://forecastfox/content/bindings.css" type="text/css"?>
  8. <?xml-stylesheet href="chrome://forecastfox/skin/forecastfox.css" type="text/css"?> 
  9.  
  10. <!DOCTYPE window SYSTEM "chrome://forecastfox/locale/forecastfox.dtd">
  11.  
  12. <!--XXX window size too small when dialog has two label customizations 
  13.         if the user sets the window size to fit when there is only one label to customize,
  14.         it cuts off the ok/cancel buttons when we open one that has two labels (alert slider
  15.         customization)
  16. -->
  17. <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  18.         id="ff-labels"
  19.         windowtype="forecastfox:labels"
  20.         persist="screenX, screenY"
  21.         screenX="10" screenY="10"
  22.         oncommand="gLabels.updateButtons(event);"
  23.         oninput="gLabels.updateButtons(event);"
  24.         onload="labelsLoad(); sizeToContent();"
  25.         onunload="labelsUnload();"
  26.         title="&ff.labels.title;">
  27.         
  28.   <script type="application/x-javascript" src="chrome://forecastfox/content/utilities/helpers.js"/>
  29.   <script type="application/x-javascript" src="chrome://forecastfox/content/options/labels.js"/>
  30.  
  31.   <stringbundleset>
  32.     <stringbundle id="ff-bundle-labels" src="chrome://forecastfox/locale/forecastfox.properties"/>
  33.   </stringbundleset>
  34.  
  35.   <keyset id="ff-keys">
  36.     <key keycode="VK_ESCAPE" oncommand="window.close();"/>
  37.   </keyset>
  38.  
  39.   <popupset>
  40.     <popup id="ff-tree-context">
  41.       <menuitem id="ff-copy-var" label="&ff.labels.copy.var;" oncommand="gLabels.copy('variable');"/>
  42.       <menuitem id="ff-copy-var" label="&ff.labels.copy.des;" oncommand="gLabels.copy('description');"/>
  43.     </popup>
  44.   </popupset>
  45.  
  46.   <ffheader id="ff-labels-header" headeralign="center" title=""/>
  47.  
  48.   <vbox id="ff-labels-content" class="ff-content" flex="1">
  49.     <grid>
  50.       <columns>
  51.         <column/>
  52.         <column flex="1"/>
  53.         <column/>
  54.         <column/>
  55.       </columns>
  56.       <rows>
  57.         <row id="ff-box-title" align="center" hidden="true">
  58.           <label value="&ff.labels.titlefield;"/>
  59.           <textbox id="ff-text-title" flex="1" onkeypress="if (event.keyCode == event.DOM_VK_RETURN) gLabels.accept(true);" />
  60.           <button id="ff-btn-title" label="&ff.labels.restore;" oncommand="gLabels.restoreDefault('title');" disabled="true"/>
  61.         </row>      
  62.         <row id="ff-box-label" align="center" hidden="true">
  63.           <label value="&ff.labels.labelfield;"/>
  64.           <textbox id="ff-text-label" flex="1" onkeypress="if (event.keyCode == event.DOM_VK_RETURN) gLabels.accept(true);"/>
  65.           <button id="ff-btn-label" label="&ff.labels.restore;" oncommand="gLabels.restoreDefault('label');" disabled="true"/>
  66.         </row>
  67.       </rows>
  68.     </grid>
  69.     <separator class="thin"/>
  70.     <tree enableColumnDrag="true" id="ff-tree-vars" rows="10" flex="1">
  71.       <treecols id="ff-tree-columns">
  72.         <treecol id="ff-col-variable" label="&ff.labels.column.var;" primary="true" persist="hidden width ordinal" flex="2" onclick="if (event.button == 0) gLabels.setSort('variable');"/>
  73.         <splitter class="tree-splitter"/>
  74.         <treecol id="ff-col-description" label="&ff.labels.column.des;" persist="hidden width ordinal" flex="4" onclick="if (event.button == 0) gLabels.setSort('description');"/>
  75.         <splitter class="tree-splitter"/>
  76.         <treecol id="ff-col-value" label="&ff.labels.column.val;" persist="hidden width ordinal" flex="1" onclick="if (event.button == 0) gLabels.setSort('value');"/>
  77.       </treecols>
  78.       <treechildren id="ff-tree-items" context="ff-tree-context"/>
  79.     </tree>
  80.   </vbox>
  81.  
  82.   <hbox id="ff-labels-footer" class="ff-footer" align="center">
  83.     <label value="&ff.providedby;"/>
  84.     <fflink label="&acw.site;" tooltiptext="&acw.tooltip;" href="&acw.main;" partner="true" from="dialog"/>
  85.     <spacer class="ff-btnspacer" flex="1"/>
  86.     <button label="&ff.ok;" default="true" class="ff-button" oncommand="gLabels.accept(true);"/> 
  87.     <button label="&ff.cancel;" class="ff-button" oncommand="window.close();"/> 
  88.     <button label="&ff.apply;" id="apply" class="ff-button" disabled="true" oncommand="gLabels.accept(false);"/>
  89.   </hbox>
  90. </window>
  91.